cmake_minimum_required(VERSION 3.8)
project(global_prop)

get_property(var1_defined GLOBAL PROPERTY my_global_prop DEFINED)
message(STATUS "var1_defined = ${var1_defined}")
get_cmake_property(var2 my_global_prop)
message(STATUS "var2 = ${var2}")

define_property(GLOBAL PROPERTY my_global_prop BRIEF_DOCS "aaa " "bbb" FULL_DOCS "full 1 " "full 2" " full 3")
get_property(var3_defined GLOBAL PROPERTY my_global_prop DEFINED)
message(STATUS "var3_defined = ${var3_defined}")
get_cmake_property(var4 my_global_prop)
message(STATUS "var4 = ${var4}")

get_property(var5_set GLOBAL PROPERTY my_global_prop SET)
message(STATUS "var5_set = ${var5_set}")

set_property(GLOBAL APPEND PROPERTY my_global_prop "this is global value")
get_property(var10_set GLOBAL PROPERTY my_global_prop SET)
message(STATUS "var10_set = ${var10_set}")

get_property(var6_value GLOBAL PROPERTY my_global_prop)
message(STATUS "var6_value = ${var6_value}")
get_cmake_property(var7 my_global_prop)
message(STATUS "var7 = ${var7}")

get_property(var8_brief GLOBAL PROPERTY my_global_prop BRIEF_DOCS)
message(STATUS "var8_brief = ${var8_brief}")
get_property(var9_full GLOBAL PROPERTY my_global_prop FULL_DOCS)
message(STATUS "var9_full = ${var9_full}")
